package com.backend.district.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.backend.common.annotation.Excel;
import com.backend.common.core.domain.BaseEntity;

/**
 * 省市县地址对象 sys_district
 * 
 * @author fusi
 * @date 2024-10-11
 */
public class SysDistrict extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 区划信息id */
    @Excel(name = "区划信息id")
    private Long id;

    /** 父级挂接id */
    @Excel(name = "父级挂接id")
    private Long pid;

    /** 区划编码 */
    @Excel(name = "区划编码")
    private String code;

    /** 区划名称 */
    @Excel(name = "区划名称")
    private String name;

    /** 状态 0 正常 -2 删除 -1 停用 */
    private Integer status;

    /** 级次id 0:省/自治区/直辖市 1:市级 2:县级 */
    private Integer level;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setLevel(Integer level) 
    {
        this.level = level;
    }

    public Integer getLevel() 
    {
        return level;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pid", getPid())
            .append("code", getCode())
            .append("name", getName())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("status", getStatus())
            .append("level", getLevel())
            .toString();
    }
}
